//此方法为vite提供的导入文件方法
const directives = import.meta.glob("./modules/*.ts", { eager: true });

export default {
	install(app: import("vue").App) {
		const directive: any[] = Object.values(directives);
		for (const item of directive) {
			const { name } = item.default;
			if (name) app.directive(name, item.default);
		}
	},
};
